package com.example.thirdservice.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/student")
public class ThirdController {
    @GetMapping(value = "/message")
    public String studentMessage(@RequestHeader("first-request") final String header){
        System.err.println(header);
        return "Hello JavaInUse Called Third Service";
    }
}
